<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/

Route::get('/', function()
{
	return View::make('hello');
}); 

Route::get("hello/{id?}",function($id = null)
{
	$data = ['id' => 12, 'name' => 'Nghiep'];

    // return View::make('hello.test', $data);
    return View::make('hello\test', $data);

})->where(array('id' => '[\d]+')); 

Route::get('/user', 'PagesController@home');